<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="../styles/layout.css" type="text/css" media="screen"/>
</head>
<body style="overflow-y: scroll;">
<div style="padding:15px;text-align:left;">
<?php require_once('../conn/DBconnect.php');

	$cmsType = "";
	if(isset($_GET["cmsType"]))
		$cmsType = $_GET["cmsType"];
		
	$cmsSQL = "call sp_cmscontent('RECORD','ct_code','".$cmsType."','1');";
	
	if ($result = mysqli_query($mysqlLink, $cmsSQL)) {
	    $cmsData = mysqli_fetch_array($result);
	
		echo $cmsData["cms_full_content"];
		
	    $result->close();
	}
	else
		echo "no result";
	
	mysqli_close($mysqlLink);
?>
</div>
</body>
</html>
